package com.sailors.common.task.provider.infra.system.config.cos;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * Tencent cos properties
 *
 * @description: 腾讯cos配置
 * @author: cyj
 * @date 2023 -04-15 10:49:53
 */
@Data
@Component
@ConfigurationProperties(prefix = "supports.tencent.cos")
public class TencentCosProperties {
    private String secretId;
    private String secretKey;
    private String region;
    private String defaultType;
    public Map<String, TencentCosBucket> bucketMap;

    @Data
    public static class TencentCosBucket {
        private String bucketName;
        private String uploadPath;
        private String usePath;
    }
}
